/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package campussmartsecurity;

import java.awt.Dimension;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Timer;
import java.util.TimerTask;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JFrame;
import javax.swing.JOptionPane;

/**
 *
 * @author brlnt
 */
public class MenuUtama extends javax.swing.JFrame {

    /**
     * Creates new form MenuUtama
     */
    Konek k = new Konek();
    String sql;
    Timer t = new Timer();
    TimerTask tt;
    public MenuUtama() {
        initComponents();
        setLocationRelativeTo(null);
        konstruktor();
    }
    private String dataUser[] = new String[3];
    
    public MenuUtama(String input[]){
        initComponents();
        setLocationRelativeTo(null);
        setDataUser(input);
        labelStatus.setText(k.getStatus());
        labelNama.setText(dataUser[1]+" .");
        konstruktor();
        menuAdmin.setVisible(false);
        if (dataUser[2].equals("1")){
            menuAdmin.setVisible(true);
        }else{}
    }
    
    void konstruktor(){
        kalender();
        getLokasi(comboLokasiAcara);
        getLokasi(LokasiMonitoring);
        getOrganisasi();
        time();
        t.schedule(tt, 0, 1000);
        viewMonitoring("", "");
        getKategori();
    }
    /*
     * Jadwal Jaga
     */
    void jadwalJaga(){
        
    }
    /**
     * kalender
     */
    int xcal=0,ycal=0,ccal=0, tanggal=0;
    Calendar cal = Calendar.getInstance();
    int bulan = cal.get(Calendar.MONTH);
    int tahun = cal.get(Calendar.YEAR);
    int hari  = cal.get(Calendar.DATE);
    int hari1 = cal.get(Calendar.DAY_OF_MONTH);
    void kalender(){
        System.out.println("bulan "+bulan);
        System.out.println("tahun "+tahun);
        System.out.println("hari "+hari);
        System.out.println("har1 "+hari1);
        if(ccal < 35){
            for(int i=1;i<8;i++){
                tanggal++;
                //tableKalender.setValueAt(i, xcal, ycal);
            }
        }
    }
    /**
     * Perijinan
     */
    void insertPemohon(){
        try{
           // sql = "INSERT INTO 'pemohon_ijin' (`NAMA_PEMOHON`,`NO_TELP_PEMOHON`) VALUES ('"+fieldNamaPemohon.getText()+"','";
        }
        catch(Exception e){
            
        }
    }
    void getLokasi(JComboBox combo){
        sql= "SELECT nama_lokasi FROM lokasi";
        ArrayList<String> hasil = new ArrayList<String>();
        try{
            k.rs = k.stmt.executeQuery(sql);
            if(k.rs.wasNull()){
                combo.addItem("tidak ada lokasi");
            }
            else{
                while(k.rs.next()){
                    hasil.add(k.rs.getString(1));
                }
                int count = 0;
                for (int i = 0; i < hasil.size(); i++) {
                    for (int j = 0; j < 1; j++) {
                        combo.addItem(hasil.get(count));
                        count++;
                    }
                }
            }
        }catch(Exception e){
            System.out.println(e);
        }
    }
    void getOrganisasi(){
        sql= "SELECT nama_organisasi FROM organisasi";
        ArrayList<String> hasil = new ArrayList<String>();
        try{
            k.rs = k.stmt.executeQuery(sql);
            if(k.rs.wasNull()){
                comboOrganisasi.addItem("tidak ada organisasi");
            }
            else{
                while(k.rs.next()){
                    hasil.add(k.rs.getString(1));
                }
                int count = 0;
                for (int i = 0; i < hasil.size(); i++) {
                    for (int j = 0; j < 1; j++) {
                        comboOrganisasi.addItem(hasil.get(count));
                        count++;
                    }
                }
            }
        }catch(Exception e){
            System.out.println(e);
        }
    }
    
    public void time() {

        tt = new TimerTask() {

            @Override
            public void run() {
                Calendar rn = Calendar.getInstance();
                int day = rn.get(Calendar.DAY_OF_MONTH);
                int month = rn.get(Calendar.MONTH)+1;
                int year = rn.get(Calendar.YEAR);
                jLabel30.setText(day + "/" + month + "/" + year);

                int second = rn.get(Calendar.SECOND);
                int minute = rn.get(Calendar.MINUTE);
                int hour = rn.get(Calendar.HOUR);
                String sec = String.valueOf(second);
                String jam = String.valueOf(hour);
                if (sec.length() == 1) {
                    sec = "0" + sec;
                }
                if (jam.length() == 1){
                    jam = "0" + jam;
                }
                jLabel34.setText(jam + ":" + minute + ":" + sec);
            }
        };
    }
    void savePerijinan(){
       if(  fieldNamaAcara.getText().equals("") ||
            fieldNomorPemohon.getText().equals("") ||
            fieldTanggalMulai.getText().equals("") ||
            fieldTanggalSelesai.getText().equals("") ||
            fieldWaktuMulai1.getText().equals("") ||
            fieldWaktuMulai2.getText().equals("") ||
            fieldWaktuSelesai1.getText().equals("") ||
            fieldWaktuSelesai2.getText().equals("") 
            ){
           JOptionPane.showMessageDialog(jTabbedPane2, "Mohon isi semua data yang diperlukan !", "Perhatian", WIDTH);
       } else{
           String wmulai = fieldTanggalMulai.getText();
           wmulai += " "+fieldWaktuMulai1.getText()+":"+fieldWaktuMulai2.getText()+":00";
           String wselesai = fieldTanggalSelesai.getText();
           wselesai += " "+fieldWaktuSelesai1.getText()+":"+fieldWaktuSelesai2.getText()+":00";
           sql = "INSERT INTO `acara`(`ID_LOKASI`, `ID_ORGANISASI`, `NAMA_ACARA`, `MULAI_ACARA`, `SELESAI_ACARA`, `NO_TELEPON`, `ACARA_TIMESTAMP`) "
                   + "VALUES ('"+String.valueOf(comboLokasiAcara.getSelectedIndex())+1+"','"+String.valueOf(comboOrganisasi.getSelectedIndex())+1+"','"+fieldNamaAcara.getText()+"',"
                   + "'"+wmulai+"','"+wselesai+"','"+fieldNomorPemohon.getText()+"', NOW())";
           System.out.println(sql);
           try{
               k.stmt.executeUpdate(sql);
               JOptionPane.showMessageDialog(jTabbedPane2, "Perijinan Acara berhasil ditambahkan\nPerijinan ini perlu di konfirmasi!"); 
               fieldNamaAcara.setText("");
               fieldNomorPemohon.setText("");
               fieldTanggalMulai.setText("");
               fieldTanggalSelesai.setText("");
               fieldWaktuMulai1.setText("");
               fieldWaktuMulai2.setText("");
               fieldWaktuSelesai1.setText("");
               fieldWaktuSelesai2.setText("");
           }catch(Exception e){
               System.out.println(e);
               JOptionPane.showMessageDialog(jTabbedPane2, "Perijinan Acara GAGAL ditambahkan\nMohon kontak ADMINISTRATOR!", "Penambahan GAGAL", JOptionPane.WARNING_MESSAGE); 
           }
       }
    } 
    /**
     * Barang Hilang
     * 
     */
     void getKategori(){
        sql= "SELECT nama_kategori_baranghilang FROM `kategori_barang_hilang`";
        ArrayList<String> hasil = new ArrayList<String>();
        try{
            k.rs = k.stmt.executeQuery(sql);
            if(k.rs.wasNull()){
                comboKategori.addItem("tidak ada kategori");
            }
            else{
                while(k.rs.next()){
                    hasil.add(k.rs.getString(1));
                }
                int count = 0;
                for (int i = 0; i < hasil.size(); i++) {
                    for (int j = 0; j < 1; j++) {
                        comboKategori.addItem(hasil.get(count));
                        count++;
                    }
                }
            }
        }catch(Exception e){
            System.out.println(e);
        }
    }
     
    void saveLaporanPerizinan(){
        if(  fieldNamaAcara.getText().equals("") ||
            fieldNomorPemohon.getText().equals("") ||
            fieldTanggalSelesai.getText().equals("") ||
            fieldWaktuMulai1.getText().equals("") ||
            fieldWaktuMulai2.getText().equals("") ||
            fieldWaktuSelesai1.getText().equals("") ||
            fieldWaktuSelesai2.getText().equals("") 
            ){
           JOptionPane.showMessageDialog(jTabbedPane2, "Mohon isi semua data yang diperlukan !", "Perhatian", WIDTH);
       } else{
           String wmulai = fieldTanggalMulai.getText();
           wmulai += " "+fieldWaktuMulai1.getText()+":"+fieldWaktuMulai2.getText()+":00";
           String wselesai = fieldTanggalSelesai.getText();
           wselesai += " "+fieldWaktuSelesai1.getText()+":"+fieldWaktuSelesai2.getText()+":00";
           sql = "INSERT INTO `acara`(`ID_LOKASI`, `ID_ORGANISASI`, `NAMA_ACARA`, `MULAI_ACARA`, `SELESAI_ACARA`, `NO_TELEPON`, `ACARA_TIMESTAMP`) "
                   + "VALUES ('"+String.valueOf(comboLokasiAcara.getSelectedIndex())+1+"','"+String.valueOf(comboOrganisasi.getSelectedIndex())+1+"','"+fieldNamaAcara.getText()+"',"
                   + "'"+wmulai+"','"+wselesai+"','"+fieldNomorPemohon.getText()+"', NOW())";
           System.out.println(sql);
           try{
               k.stmt.executeUpdate(sql);
               JOptionPane.showMessageDialog(jTabbedPane2, "Perijinan Acara berhasil ditambahkan\nPerijinan ini perlu di konfirmasi!"); 
               fieldNamaAcara.setText("");
               fieldNomorPemohon.setText("");
               fieldTanggalMulai.setText("");
               fieldTanggalSelesai.setText("");
               fieldWaktuMulai1.setText("");
               fieldWaktuMulai2.setText("");
               fieldWaktuSelesai1.setText("");
               fieldWaktuSelesai2.setText("");
           }catch(Exception e){
               System.out.println(e);
               JOptionPane.showMessageDialog(jTabbedPane2, "Perijinan Acara GAGAL ditambahkan\nMohon kontak ADMINISTRATOR!", "Penambahan GAGAL", JOptionPane.WARNING_MESSAGE); 
           }
       }
    }
   void saveLaporanHilang(){
        if(  fieldNamaPelapor.getText().equals("") ||
            fieldAlamatPelapor.getText().equals("") ||
            fieldNomorPelapor.getText().equals("") ||
            fieldTanggalHilang.getText().equals("") ||
            fieldWaktuHilang1.getText().equals("") ||
            fieldWaktuHilang2.getText().equals("") ||
            fieldNamaBarang.getText().equals("") ||
            fieldInformasiHilang.getText().equals("") 
     
          ){
           JOptionPane.showMessageDialog(jTabbedPane2, "Mohon isi semua data yang diperlukan !", "Perhatian", WIDTH);
       } else{
           String wHilang = fieldTanggalHilang.getText();
           wHilang += " "+fieldWaktuHilang1.getText()+":"+fieldWaktuHilang2.getText()+":00";
           int ktg = comboKategori.getSelectedIndex()+1;
           String kategori = String.valueOf(ktg);
           sql = "INSERT INTO `detail_kehilangan`(`NAMA_PELAPOR`, `NOMOR_PELAPOR`, `ID_KATEGORI_BARANGHILANG`, `ID_SKK`, `NAMA_BARANG_HILANG`, `ESTIMASI_WAKTU_HILANG`, `INFORMASI_LAIN_BARANG_HILANG`,`ALAMAT_PELAPOR`) "
                   + "VALUES ('"+fieldNamaPelapor.getText()+"','"+fieldNomorPelapor.getText()+"','"+kategori+"','"+dataUser[0]+"','"+fieldNamaBarang.getText()+"','"+wHilang+"','"+fieldInformasiHilang.getText()+"','"+fieldAlamatPelapor.getText()+"');";
           System.out.println(sql);
           try{
               k.stmt.executeUpdate(sql);
               JOptionPane.showMessageDialog(jTabbedPane2, "Laporan Kehilangan Berhasil Diterima"); 
            fieldNamaPelapor.setText("") ;
            fieldAlamatPelapor.setText(""); 
            fieldNomorPelapor.setText("");
            fieldTanggalHilang.setText("");
            fieldWaktuHilang1.setText("");
            fieldWaktuHilang2.setText("");
            fieldInformasiHilang.setText(""); 
            fieldNamaBarang.setText("");
           }catch(Exception e){
               System.out.println(e);
               JOptionPane.showMessageDialog(jTabbedPane2, "Laporan Kehilangan Gagal  :( \n coba cek lagi mungkin ada yang kosong", "Penambahan GAGAL", JOptionPane.WARNING_MESSAGE); 
           }
       }
    } /**
     * Monitoring
     * @param idf
     * @param query 
     */
    void viewMonitoring(String idf,String query){
        ArrayList<String> hasil = new ArrayList<String>();
        sql= "SELECT * FROM `absensi_view`";
        if (idf.equals("") && query.equals("")){
            
        }else{
            sql += " WHERE "+idf+" = '"+query+"'";
        }
        
        System.out.println(sql);
        try{
            k.rs = k.stmt.executeQuery(sql);
            while(k.rs.next()){
                hasil.add(k.rs.getString(1));
                hasil.add(k.rs.getString(2));
                hasil.add(k.rs.getString(3));
                hasil.add(k.rs.getString(4));
                hasil.add(k.rs.getString(5));
                hasil.add(k.rs.getString(6));
            }
            String tblhasil[][] = new String[hasil.size()/6][6];
            int count=0;
            for (int i = 0; i < hasil.size()/6; i++) {
                for (int j = 0; j < 6; j++) {
                    tblhasil[i][j] = hasil.get(count);
                    count++;
                }
            }
            String kolom[] = {"ID", "Lokasi", "Nama SKK","Shift","Status","Waktu"
            };
            TabelMonitoring.setModel(new javax.swing.table.DefaultTableModel(tblhasil, kolom));
            labelStatus.setText("Query success");
            TabelMonitoring.addMouseListener(new java.awt.event.MouseAdapter() {
                public void mouseClicked(java.awt.event.MouseEvent evt) {
                    
                }
            });
        }
        catch(Exception e){
            System.out.println(e);
//            JOptionPane.showMessageDialog(panelPemohon, "Query error");
        }
    }
    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        jTabbedPane2 = new javax.swing.JTabbedPane();
        tabMonitoring = new javax.swing.JPanel();
        jPanel5 = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        labelTahun = new javax.swing.JLabel();
        labelBulan = new javax.swing.JLabel();
        jButton2 = new javax.swing.JButton();
        jButton3 = new javax.swing.JButton();
        tabIjin = new javax.swing.JPanel();
        jSeparator1 = new javax.swing.JSeparator();
        panelDetilAcara = new javax.swing.JPanel();
        jLabel8 = new javax.swing.JLabel();
        fieldNamaAcara = new javax.swing.JTextField();
        jLabel7 = new javax.swing.JLabel();
        comboLokasiAcara = new javax.swing.JComboBox();
        jLabel23 = new javax.swing.JLabel();
        comboOrganisasi = new javax.swing.JComboBox();
        jLabel3 = new javax.swing.JLabel();
        fieldNomorPemohon = new javax.swing.JTextField();
        jPanel6 = new javax.swing.JPanel();
        jButton8 = new javax.swing.JButton();
        jLabel14 = new javax.swing.JLabel();
        panelSavePerjanjian = new javax.swing.JPanel();
        labelLihatPerjanjian = new javax.swing.JLabel();
        buttonLihatPerijinan = new javax.swing.JButton();
        buttonSavePermohonanIjin = new javax.swing.JButton();
        labelSavePerjanjian = new javax.swing.JLabel();
        panelWaktuAcara = new javax.swing.JPanel();
        jLabel11 = new javax.swing.JLabel();
        fieldTanggalSelesai = new javax.swing.JTextField();
        kalenderIjinSelesai = new javax.swing.JButton();
        jLabel12 = new javax.swing.JLabel();
        jLabel13 = new javax.swing.JLabel();
        fieldWaktuMulai1 = new javax.swing.JTextField();
        fieldWaktuMulai2 = new javax.swing.JTextField();
        jLabel10 = new javax.swing.JLabel();
        fieldWaktuSelesai1 = new javax.swing.JTextField();
        jLabel15 = new javax.swing.JLabel();
        fieldWaktuSelesai2 = new javax.swing.JTextField();
        jLabel9 = new javax.swing.JLabel();
        fieldTanggalMulai = new javax.swing.JTextField();
        kalenderIjinMulai = new javax.swing.JButton();
        jPanel2 = new javax.swing.JPanel();
        tabKehilangan = new javax.swing.JPanel();
        jButton12 = new javax.swing.JButton();
        jLabel20 = new javax.swing.JLabel();
        panelDetilAcara1 = new javax.swing.JPanel();
        jLabel21 = new javax.swing.JLabel();
        fieldNamaPelapor = new javax.swing.JTextField();
        jLabel22 = new javax.swing.JLabel();
        comboKategori = new javax.swing.JComboBox();
        jLabel24 = new javax.swing.JLabel();
        jLabel25 = new javax.swing.JLabel();
        fieldNomorPelapor = new javax.swing.JTextField();
        fieldAlamatPelapor = new javax.swing.JTextField();
        jLabel5 = new javax.swing.JLabel();
        fieldNamaBarang = new javax.swing.JTextField();
        panelWaktuAcara1 = new javax.swing.JPanel();
        jLabel27 = new javax.swing.JLabel();
        fieldWaktuHilang1 = new javax.swing.JTextField();
        fieldWaktuHilang2 = new javax.swing.JTextField();
        jLabel29 = new javax.swing.JLabel();
        jLabel31 = new javax.swing.JLabel();
        fieldTanggalHilang = new javax.swing.JTextField();
        kalenderIjinMulai1 = new javax.swing.JButton();
        jScrollPane2 = new javax.swing.JScrollPane();
        fieldInformasiHilang = new javax.swing.JTextArea();
        jLabel4 = new javax.swing.JLabel();
        panelSavePerjanjian1 = new javax.swing.JPanel();
        labelLihatPerjanjian1 = new javax.swing.JLabel();
        buttonLihatPerijinan1 = new javax.swing.JButton();
        buttonSavePermohonanIjin1 = new javax.swing.JButton();
        labelSavePerjanjian1 = new javax.swing.JLabel();
        jSeparator3 = new javax.swing.JSeparator();
        jTabbedPane1 = new javax.swing.JTabbedPane();
        jPanel4 = new javax.swing.JPanel();
        LokasiMonitoring = new javax.swing.JComboBox();
        jLabel36 = new javax.swing.JLabel();
        jScrollPane1 = new javax.swing.JScrollPane();
        TabelMonitoring = new javax.swing.JTable();
        searchskk = new javax.swing.JTextField();
        jLabel37 = new javax.swing.JLabel();
        jButton4 = new javax.swing.JButton();
        jPanel7 = new javax.swing.JPanel();
        jLabel30 = new javax.swing.JLabel();
        jLabel32 = new javax.swing.JLabel();
        jLabel28 = new javax.swing.JLabel();
        jLabel35 = new javax.swing.JLabel();
        jLabel34 = new javax.swing.JLabel();
        jLabel33 = new javax.swing.JLabel();
        jButton1 = new javax.swing.JButton();
        jLabel2 = new javax.swing.JLabel();
        labelNama = new javax.swing.JLabel();
        labelStatus = new javax.swing.JLabel();
        jMenuBar1 = new javax.swing.JMenuBar();
        menuFile = new javax.swing.JMenu();
        menuLogout = new javax.swing.JMenuItem();
        jMenu1 = new javax.swing.JMenu();
        jMenuItem3 = new javax.swing.JMenuItem();
        jMenuItem2 = new javax.swing.JMenuItem();
        menuAdmin = new javax.swing.JMenu();
        menuManajemenAnggota = new javax.swing.JMenuItem();
        jMenuItem4 = new javax.swing.JMenuItem();
        menuHelp = new javax.swing.JMenu();
        menuAbout = new javax.swing.JMenuItem();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("Campus Smart Security");
        setResizable(false);
        addWindowListener(new java.awt.event.WindowAdapter() {
            public void windowActivated(java.awt.event.WindowEvent evt) {
                formWindowActivated(evt);
            }
        });

        jTabbedPane2.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N

        jPanel5.setBorder(javax.swing.BorderFactory.createTitledBorder(null, " Kalender", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, null, java.awt.Color.black));

        jLabel1.setText("-");

        labelTahun.setText("2011");
        labelTahun.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        labelBulan.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        labelBulan.setText("Januari");
        labelBulan.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/resultset_previous.png"))); // NOI18N

        jButton3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/resultset_next.png"))); // NOI18N

        javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
        jPanel5.setLayout(jPanel5Layout);
        jPanel5Layout.setHorizontalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addComponent(jButton2)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jButton3)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 177, Short.MAX_VALUE)
                .addComponent(labelBulan, javax.swing.GroupLayout.PREFERRED_SIZE, 77, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel1)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(labelTahun))
        );
        jPanel5Layout.setVerticalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel1)
                    .addComponent(labelTahun)
                    .addComponent(labelBulan)
                    .addComponent(jButton2)
                    .addComponent(jButton3))
                .addContainerGap(198, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout tabMonitoringLayout = new javax.swing.GroupLayout(tabMonitoring);
        tabMonitoring.setLayout(tabMonitoringLayout);
        tabMonitoringLayout.setHorizontalGroup(
            tabMonitoringLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(tabMonitoringLayout.createSequentialGroup()
                .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(0, 322, Short.MAX_VALUE))
        );
        tabMonitoringLayout.setVerticalGroup(
            tabMonitoringLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(tabMonitoringLayout.createSequentialGroup()
                .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(0, 138, Short.MAX_VALUE))
        );

        jTabbedPane2.addTab("Jadwal Jaga", tabMonitoring);

        panelDetilAcara.setBorder(javax.swing.BorderFactory.createTitledBorder(" Detail Acara"));

        jLabel8.setText("Nama Acara");

        fieldNamaAcara.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                fieldNamaAcaraActionPerformed(evt);
            }
        });

        jLabel7.setText("Lokasi");

        jLabel23.setText("Organisasi Penyelenggara");

        comboOrganisasi.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                comboOrganisasiActionPerformed(evt);
            }
        });

        jLabel3.setText("Nomor yang dapat dihubungi");

        javax.swing.GroupLayout panelDetilAcaraLayout = new javax.swing.GroupLayout(panelDetilAcara);
        panelDetilAcara.setLayout(panelDetilAcaraLayout);
        panelDetilAcaraLayout.setHorizontalGroup(
            panelDetilAcaraLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelDetilAcaraLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(panelDetilAcaraLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(fieldNamaAcara, javax.swing.GroupLayout.DEFAULT_SIZE, 225, Short.MAX_VALUE)
                    .addComponent(comboOrganisasi, 0, 225, Short.MAX_VALUE)
                    .addComponent(comboLokasiAcara, 0, 225, Short.MAX_VALUE)
                    .addComponent(fieldNomorPemohon, javax.swing.GroupLayout.DEFAULT_SIZE, 225, Short.MAX_VALUE)
                    .addGroup(panelDetilAcaraLayout.createSequentialGroup()
                        .addGroup(panelDetilAcaraLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel8)
                            .addComponent(jLabel23)
                            .addComponent(jLabel7)
                            .addComponent(jLabel3))
                        .addGap(0, 87, Short.MAX_VALUE)))
                .addContainerGap())
        );
        panelDetilAcaraLayout.setVerticalGroup(
            panelDetilAcaraLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelDetilAcaraLayout.createSequentialGroup()
                .addComponent(jLabel8)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(fieldNamaAcara, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel23)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(comboOrganisasi, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel7)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(comboLokasiAcara, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel3)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(fieldNomorPemohon, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jPanel6.setBorder(javax.swing.BorderFactory.createTitledBorder(""));

        jButton8.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/accept.png"))); // NOI18N

        jLabel14.setText("Persetujuan Acara");

        javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);
        jPanel6.setLayout(jPanel6Layout);
        jPanel6Layout.setHorizontalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel6Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel14)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jButton8, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(40, 40, 40))
        );
        jPanel6Layout.setVerticalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel6Layout.createSequentialGroup()
                .addGap(0, 0, Short.MAX_VALUE)
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jButton8, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLabel14, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)))
        );

        panelSavePerjanjian.setBorder(javax.swing.BorderFactory.createTitledBorder(""));

        labelLihatPerjanjian.setText("Lihat Perijinan");

        buttonLihatPerijinan.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/application_view_list.png"))); // NOI18N
        buttonLihatPerijinan.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                buttonLihatPerijinanMouseClicked(evt);
            }
        });

        buttonSavePermohonanIjin.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/disk.png"))); // NOI18N
        buttonSavePermohonanIjin.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                buttonSavePermohonanIjinMouseClicked(evt);
            }
        });

        labelSavePerjanjian.setText("Save");

        javax.swing.GroupLayout panelSavePerjanjianLayout = new javax.swing.GroupLayout(panelSavePerjanjian);
        panelSavePerjanjian.setLayout(panelSavePerjanjianLayout);
        panelSavePerjanjianLayout.setHorizontalGroup(
            panelSavePerjanjianLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelSavePerjanjianLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(panelSavePerjanjianLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(panelSavePerjanjianLayout.createSequentialGroup()
                        .addComponent(buttonLihatPerijinan, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(labelLihatPerjanjian))
                    .addGroup(panelSavePerjanjianLayout.createSequentialGroup()
                        .addComponent(buttonSavePermohonanIjin, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(labelSavePerjanjian, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                .addContainerGap(100, Short.MAX_VALUE))
        );
        panelSavePerjanjianLayout.setVerticalGroup(
            panelSavePerjanjianLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelSavePerjanjianLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(panelSavePerjanjianLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(buttonSavePermohonanIjin, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(labelSavePerjanjian, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(panelSavePerjanjianLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(buttonLihatPerijinan, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(labelLihatPerjanjian, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );

        panelWaktuAcara.setBorder(javax.swing.BorderFactory.createTitledBorder("Waktu Acara"));

        jLabel11.setText("Tanggal Selesai");

        fieldTanggalSelesai.setEditable(false);
        fieldTanggalSelesai.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                fieldTanggalSelesaiMouseClicked(evt);
            }
        });

        kalenderIjinSelesai.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/calendar_add.png"))); // NOI18N
        kalenderIjinSelesai.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                kalenderIjinSelesaiMouseClicked(evt);
            }
        });

        jLabel12.setText("Waktu Mulai");

        jLabel13.setText("Waktu Selesai");

        fieldWaktuMulai1.setText("06");

        fieldWaktuMulai2.setText("00");

        jLabel10.setText(":");

        fieldWaktuSelesai1.setText("22");

        jLabel15.setText(":");

        fieldWaktuSelesai2.setText("00");

        jLabel9.setText("Tanggal Mulai");

        fieldTanggalMulai.setEditable(false);
        fieldTanggalMulai.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                fieldTanggalMulaiMouseClicked(evt);
            }
        });

        kalenderIjinMulai.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/calendar_add.png"))); // NOI18N
        kalenderIjinMulai.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                kalenderIjinMulaiMouseClicked(evt);
            }
        });

        javax.swing.GroupLayout panelWaktuAcaraLayout = new javax.swing.GroupLayout(panelWaktuAcara);
        panelWaktuAcara.setLayout(panelWaktuAcaraLayout);
        panelWaktuAcaraLayout.setHorizontalGroup(
            panelWaktuAcaraLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelWaktuAcaraLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(panelWaktuAcaraLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel11)
                    .addGroup(panelWaktuAcaraLayout.createSequentialGroup()
                        .addComponent(fieldWaktuMulai1, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel10)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(fieldWaktuMulai2, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(54, 54, 54)
                        .addComponent(fieldWaktuSelesai1, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel15)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(fieldWaktuSelesai2, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(panelWaktuAcaraLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, panelWaktuAcaraLayout.createSequentialGroup()
                            .addComponent(jLabel12)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jLabel13))
                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, panelWaktuAcaraLayout.createSequentialGroup()
                            .addComponent(fieldTanggalSelesai, javax.swing.GroupLayout.PREFERRED_SIZE, 136, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(kalenderIjinSelesai, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addComponent(jLabel9)
                    .addGroup(panelWaktuAcaraLayout.createSequentialGroup()
                        .addComponent(fieldTanggalMulai, javax.swing.GroupLayout.PREFERRED_SIZE, 136, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(kalenderIjinMulai, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(32, Short.MAX_VALUE))
        );
        panelWaktuAcaraLayout.setVerticalGroup(
            panelWaktuAcaraLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelWaktuAcaraLayout.createSequentialGroup()
                .addComponent(jLabel9)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(panelWaktuAcaraLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(kalenderIjinMulai, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(fieldTanggalMulai, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel11)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(panelWaktuAcaraLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(kalenderIjinSelesai, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(fieldTanggalSelesai))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(panelWaktuAcaraLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel12)
                    .addComponent(jLabel13))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(panelWaktuAcaraLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(fieldWaktuMulai1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(fieldWaktuMulai2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel10)
                    .addComponent(fieldWaktuSelesai1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(fieldWaktuSelesai2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel15))
                .addGap(0, 47, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout tabIjinLayout = new javax.swing.GroupLayout(tabIjin);
        tabIjin.setLayout(tabIjinLayout);
        tabIjinLayout.setHorizontalGroup(
            tabIjinLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(tabIjinLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(tabIjinLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jSeparator1, javax.swing.GroupLayout.DEFAULT_SIZE, 716, Short.MAX_VALUE)
                    .addGroup(tabIjinLayout.createSequentialGroup()
                        .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, 148, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(0, 568, Short.MAX_VALUE))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, tabIjinLayout.createSequentialGroup()
                        .addComponent(panelDetilAcara, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(panelWaktuAcara, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(panelSavePerjanjian, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                .addContainerGap())
        );
        tabIjinLayout.setVerticalGroup(
            tabIjinLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(tabIjinLayout.createSequentialGroup()
                .addGap(4, 4, 4)
                .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 9, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(tabIjinLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(tabIjinLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                        .addComponent(panelWaktuAcara, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(panelDetilAcara, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addComponent(panelSavePerjanjian, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(112, Short.MAX_VALUE))
        );

        jTabbedPane2.addTab("Permohonan Ijin", tabIjin);

        jButton12.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/accept.png"))); // NOI18N

        jLabel20.setText("Pelaporan Kehilangan");

        panelDetilAcara1.setBorder(javax.swing.BorderFactory.createTitledBorder(" Detail Kehilangan"));

        jLabel21.setText("Nama Pelapor");

        jLabel22.setText("Kategori");

        comboKategori.setVerifyInputWhenFocusTarget(false);
        comboKategori.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                comboKategoriActionPerformed(evt);
            }
        });

        jLabel24.setText("Alamat Pelapor");

        jLabel25.setText("Nomor yang dapat dihubungi");

        jLabel5.setText("Barang yang hilang");

        javax.swing.GroupLayout panelDetilAcara1Layout = new javax.swing.GroupLayout(panelDetilAcara1);
        panelDetilAcara1.setLayout(panelDetilAcara1Layout);
        panelDetilAcara1Layout.setHorizontalGroup(
            panelDetilAcara1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelDetilAcara1Layout.createSequentialGroup()
                .addGap(47, 47, 47)
                .addGroup(panelDetilAcara1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel25)
                    .addComponent(comboKategori, javax.swing.GroupLayout.Alignment.TRAILING, 0, 182, Short.MAX_VALUE)
                    .addComponent(fieldNamaPelapor, javax.swing.GroupLayout.DEFAULT_SIZE, 182, Short.MAX_VALUE)
                    .addComponent(fieldAlamatPelapor, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 182, Short.MAX_VALUE)
                    .addGroup(panelDetilAcara1Layout.createSequentialGroup()
                        .addGroup(panelDetilAcara1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel22)
                            .addComponent(jLabel21)
                            .addComponent(jLabel24))
                        .addGap(66, 110, Short.MAX_VALUE))
                    .addComponent(jLabel5)
                    .addComponent(fieldNomorPelapor, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 182, Short.MAX_VALUE)
                    .addComponent(fieldNamaBarang, javax.swing.GroupLayout.DEFAULT_SIZE, 182, Short.MAX_VALUE))
                .addContainerGap())
        );
        panelDetilAcara1Layout.setVerticalGroup(
            panelDetilAcara1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelDetilAcara1Layout.createSequentialGroup()
                .addComponent(jLabel21)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(fieldNamaPelapor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel24)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(fieldAlamatPelapor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jLabel22)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(comboKategori, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jLabel5)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(fieldNamaBarang, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 11, Short.MAX_VALUE)
                .addComponent(jLabel25)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(fieldNomorPelapor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
        );

        panelWaktuAcara1.setBorder(javax.swing.BorderFactory.createTitledBorder("Deskripsi Kehilangan"));

        jLabel27.setText("Estimasi Jam Kehilangan");

        fieldWaktuHilang1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                fieldWaktuHilang1ActionPerformed(evt);
            }
        });

        jLabel29.setText(":");

        jLabel31.setText("Estimasi Tanggal Kehilangan");

        fieldTanggalHilang.setEditable(false);
        fieldTanggalHilang.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                fieldTanggalHilangMouseClicked(evt);
            }
        });

        kalenderIjinMulai1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/calendar_add.png"))); // NOI18N
        kalenderIjinMulai1.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                kalenderIjinMulai1MouseClicked(evt);
            }
        });

        fieldInformasiHilang.setColumns(20);
        fieldInformasiHilang.setRows(5);
        jScrollPane2.setViewportView(fieldInformasiHilang);

        jLabel4.setText("Informasi Lain");

        javax.swing.GroupLayout panelWaktuAcara1Layout = new javax.swing.GroupLayout(panelWaktuAcara1);
        panelWaktuAcara1.setLayout(panelWaktuAcara1Layout);
        panelWaktuAcara1Layout.setHorizontalGroup(
            panelWaktuAcara1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelWaktuAcara1Layout.createSequentialGroup()
                .addGroup(panelWaktuAcara1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(panelWaktuAcara1Layout.createSequentialGroup()
                        .addComponent(fieldTanggalHilang, javax.swing.GroupLayout.PREFERRED_SIZE, 254, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(kalenderIjinMulai1, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 291, Short.MAX_VALUE)
                    .addGroup(panelWaktuAcara1Layout.createSequentialGroup()
                        .addGroup(panelWaktuAcara1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel31)
                            .addComponent(jLabel27)
                            .addGroup(panelWaktuAcara1Layout.createSequentialGroup()
                                .addComponent(fieldWaktuHilang1, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jLabel29)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(fieldWaktuHilang2, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(jLabel4))
                        .addGap(0, 157, Short.MAX_VALUE)))
                .addContainerGap())
        );
        panelWaktuAcara1Layout.setVerticalGroup(
            panelWaktuAcara1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelWaktuAcara1Layout.createSequentialGroup()
                .addComponent(jLabel4)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 119, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel31)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(panelWaktuAcara1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(fieldTanggalHilang, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(kalenderIjinMulai1))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel27)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(panelWaktuAcara1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(fieldWaktuHilang1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel29)
                    .addComponent(fieldWaktuHilang2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(12, 12, 12))
        );

        panelSavePerjanjian1.setBorder(javax.swing.BorderFactory.createTitledBorder(""));

        labelLihatPerjanjian1.setText("View Report");

        buttonLihatPerijinan1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/application_view_list.png"))); // NOI18N
        buttonLihatPerijinan1.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                buttonLihatPerijinan1MouseClicked(evt);
            }
        });

        buttonSavePermohonanIjin1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/disk.png"))); // NOI18N
        buttonSavePermohonanIjin1.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                buttonSavePermohonanIjin1MouseClicked(evt);
            }
        });
        buttonSavePermohonanIjin1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                buttonSavePermohonanIjin1ActionPerformed(evt);
            }
        });

        labelSavePerjanjian1.setText("Save");

        javax.swing.GroupLayout panelSavePerjanjian1Layout = new javax.swing.GroupLayout(panelSavePerjanjian1);
        panelSavePerjanjian1.setLayout(panelSavePerjanjian1Layout);
        panelSavePerjanjian1Layout.setHorizontalGroup(
            panelSavePerjanjian1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelSavePerjanjian1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(panelSavePerjanjian1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(panelSavePerjanjian1Layout.createSequentialGroup()
                        .addComponent(buttonLihatPerijinan1, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(labelLihatPerjanjian1))
                    .addGroup(panelSavePerjanjian1Layout.createSequentialGroup()
                        .addComponent(buttonSavePermohonanIjin1, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(labelSavePerjanjian1, javax.swing.GroupLayout.PREFERRED_SIZE, 58, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(17, Short.MAX_VALUE))
        );
        panelSavePerjanjian1Layout.setVerticalGroup(
            panelSavePerjanjian1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelSavePerjanjian1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(panelSavePerjanjian1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(buttonSavePermohonanIjin1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(labelSavePerjanjian1, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(panelSavePerjanjian1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(buttonLihatPerijinan1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(labelLihatPerjanjian1, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );

        javax.swing.GroupLayout tabKehilanganLayout = new javax.swing.GroupLayout(tabKehilangan);
        tabKehilangan.setLayout(tabKehilanganLayout);
        tabKehilanganLayout.setHorizontalGroup(
            tabKehilanganLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(tabKehilanganLayout.createSequentialGroup()
                .addGroup(tabKehilanganLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(tabKehilanganLayout.createSequentialGroup()
                        .addGap(37, 37, 37)
                        .addComponent(jLabel20)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jButton12, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(0, 552, Short.MAX_VALUE))
                    .addGroup(tabKehilanganLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jSeparator3, javax.swing.GroupLayout.DEFAULT_SIZE, 716, Short.MAX_VALUE))
                    .addGroup(tabKehilanganLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(panelDetilAcara1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(panelWaktuAcara1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(panelSavePerjanjian1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(12, 12, 12)))
                .addContainerGap())
        );
        tabKehilanganLayout.setVerticalGroup(
            tabKehilanganLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(tabKehilanganLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(tabKehilanganLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel20, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButton12))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jSeparator3, javax.swing.GroupLayout.PREFERRED_SIZE, 9, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(tabKehilanganLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(panelWaktuAcara1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(panelSavePerjanjian1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(panelDetilAcara1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(51, Short.MAX_VALUE))
        );

        panelWaktuAcara1.getAccessibleContext().setAccessibleDescription("");

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 736, Short.MAX_VALUE)
            .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel2Layout.createSequentialGroup()
                    .addGap(0, 0, Short.MAX_VALUE)
                    .addComponent(tabKehilangan, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 0, Short.MAX_VALUE)))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 384, Short.MAX_VALUE)
            .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel2Layout.createSequentialGroup()
                    .addGap(0, 0, Short.MAX_VALUE)
                    .addComponent(tabKehilangan, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 0, Short.MAX_VALUE)))
        );

        jTabbedPane2.addTab("Pelaporan Kehilangan", jPanel2);

        LokasiMonitoring.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Semua" }));
        LokasiMonitoring.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                LokasiMonitoringItemStateChanged(evt);
            }
        });
        LokasiMonitoring.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                LokasiMonitoringActionPerformed(evt);
            }
        });

        jLabel36.setText("Lokasi");

        TabelMonitoring.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "ID SKK", "Nama", "Nama Lengkap", "Status"
            }
        ));
        jScrollPane1.setViewportView(TabelMonitoring);

        searchskk.setText("masukkan nama skk di sini :)");
        searchskk.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                searchskkActionPerformed(evt);
            }
        });

        jLabel37.setText("Cari SKK");

        jButton4.setText("Cari!");
        jButton4.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButton4MouseClicked(evt);
            }
        });
        jButton4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton4ActionPerformed(evt);
            }
        });

        jPanel7.setBackground(new java.awt.Color(255, 255, 255));
        jPanel7.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        jLabel30.setText("jLabel30");

        jLabel32.setText("Jam       :");

        jLabel28.setText("Tanggal :");

        jLabel35.setText("jLabel35");

        jLabel34.setText("jLabel34");

        jLabel33.setText("Shift      :");

        javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);
        jPanel7.setLayout(jPanel7Layout);
        jPanel7Layout.setHorizontalGroup(
            jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel7Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(jPanel7Layout.createSequentialGroup()
                        .addComponent(jLabel33)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jLabel35))
                    .addGroup(jPanel7Layout.createSequentialGroup()
                        .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jLabel32, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jLabel28))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel30)
                            .addComponent(jLabel34))))
                .addContainerGap(56, Short.MAX_VALUE))
        );
        jPanel7Layout.setVerticalGroup(
            jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel7Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel28)
                    .addComponent(jLabel30))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel32, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel34))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel33)
                    .addComponent(jLabel35))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
        jPanel4.setLayout(jPanel4Layout);
        jPanel4Layout.setHorizontalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addComponent(jLabel36)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(LokasiMonitoring, javax.swing.GroupLayout.PREFERRED_SIZE, 205, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(27, 27, 27)
                        .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel37)
                            .addGroup(jPanel4Layout.createSequentialGroup()
                                .addComponent(searchskk, javax.swing.GroupLayout.PREFERRED_SIZE, 182, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(jButton4))))
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 532, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );
        jPanel4Layout.setVerticalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addComponent(jLabel37)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel36)
                            .addComponent(LokasiMonitoring, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(searchskk, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jButton4))
                        .addGap(29, 29, 29)
                        .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 111, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(162, Short.MAX_VALUE))
        );

        LokasiMonitoring.getAccessibleContext().setAccessibleDescription("");

        jTabbedPane1.addTab("", jPanel4);

        jTabbedPane2.addTab("Monitoring Lokasi", jTabbedPane1);

        jButton1.setFont(new java.awt.Font("Century Gothic", 1, 12));
        jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/wrench.png"))); // NOI18N
        jButton1.setText("Edit Akun");

        jLabel2.setFont(new java.awt.Font("Century Gothic", 0, 12));
        jLabel2.setText("Selamat Datang dalam aplikasi Campus Smart Security,");

        labelNama.setFont(new java.awt.Font("Century Gothic", 1, 12));
        labelNama.setText("ilegal user :p .");

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel2)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(labelNama, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 145, Short.MAX_VALUE)
                .addComponent(jButton1)
                .addContainerGap())
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addComponent(jTabbedPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 725, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(0, 0, Short.MAX_VALUE))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel2)
                    .addComponent(labelNama)
                    .addComponent(jButton1))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jTabbedPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 386, javax.swing.GroupLayout.PREFERRED_SIZE))
        );

        labelStatus.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        menuFile.setText("File");

        menuLogout.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/door_out.png"))); // NOI18N
        menuLogout.setText("Log out");
        menuLogout.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                menuLogoutActionPerformed(evt);
            }
        });
        menuFile.add(menuLogout);

        jMenuBar1.add(menuFile);

        jMenu1.setText("Lihat");

        jMenuItem3.setText("Acara");
        jMenuItem3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem3ActionPerformed(evt);
            }
        });
        jMenu1.add(jMenuItem3);

        jMenuItem2.setText("Daftar Barang Hilang");
        jMenu1.add(jMenuItem2);

        jMenuBar1.add(jMenu1);

        menuAdmin.setText("Admin");

        menuManajemenAnggota.setText("Manajemen Anggota");
        menuManajemenAnggota.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                menuManajemenAnggotaActionPerformed(evt);
            }
        });
        menuAdmin.add(menuManajemenAnggota);

        jMenuItem4.setText("Manajemen Jadwal");
        jMenuItem4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem4ActionPerformed(evt);
            }
        });
        menuAdmin.add(jMenuItem4);

        jMenuBar1.add(menuAdmin);

        menuHelp.setText("Bantuan");

        menuAbout.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/information.png"))); // NOI18N
        menuAbout.setText("About");
        menuAbout.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                menuAboutMouseClicked(evt);
            }
        });
        menuAbout.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                menuAboutActionPerformed(evt);
            }
        });
        menuAbout.addMenuKeyListener(new javax.swing.event.MenuKeyListener() {
            public void menuKeyTyped(javax.swing.event.MenuKeyEvent evt) {
            }
            public void menuKeyPressed(javax.swing.event.MenuKeyEvent evt) {
                menuAboutMenuKeyPressed(evt);
            }
            public void menuKeyReleased(javax.swing.event.MenuKeyEvent evt) {
            }
        });
        menuHelp.add(menuAbout);

        jMenuBar1.add(menuHelp);

        setJMenuBar(jMenuBar1);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addComponent(labelStatus, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 725, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(labelStatus, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void menuLogoutActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menuLogoutActionPerformed
        // TODO add your handling code here:
        new Home().setVisible(true);
        dispose();
    }//GEN-LAST:event_menuLogoutActionPerformed

    private void menuAboutMenuKeyPressed(javax.swing.event.MenuKeyEvent evt) {//GEN-FIRST:event_menuAboutMenuKeyPressed
        // TODO add your handling code here:
    }//GEN-LAST:event_menuAboutMenuKeyPressed

    private void menuAboutActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menuAboutActionPerformed
        // TODO add your handling code here:
        new AboutCSS(dataUser).setVisible(true);
    }//GEN-LAST:event_menuAboutActionPerformed

    private void menuAboutMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_menuAboutMouseClicked
        // TODO add your handling code here:
    }//GEN-LAST:event_menuAboutMouseClicked

    private void buttonSavePermohonanIjinMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_buttonSavePermohonanIjinMouseClicked
        // TODO add your handling code here:
        savePerijinan();
    }//GEN-LAST:event_buttonSavePermohonanIjinMouseClicked

    private void buttonLihatPerijinanMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_buttonLihatPerijinanMouseClicked
        // TODO add your handling code here:
        new LihatPerijinan().setVisible(true);
    }//GEN-LAST:event_buttonLihatPerijinanMouseClicked
    Kalender cal1 = new Kalender();
    Kalender cal2 = new Kalender();
    Kalender cal3 = new Kalender();
    private void kalenderIjinMulaiMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_kalenderIjinMulaiMouseClicked
        // TODO add your handling code here:
        cal1.setVisible(true);
    }//GEN-LAST:event_kalenderIjinMulaiMouseClicked

    private void kalenderIjinSelesaiMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_kalenderIjinSelesaiMouseClicked
        // TODO add your handling code here:
        cal2.setVisible(true);
    }//GEN-LAST:event_kalenderIjinSelesaiMouseClicked

    private void formWindowActivated(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_formWindowActivated
        // TODO add your handling code here:
        fieldTanggalMulai.setText(cal1.hasil());
        fieldTanggalSelesai.setText(cal2.hasil());
        fieldTanggalHilang.setText(cal3.hasil());
     
    }//GEN-LAST:event_formWindowActivated

    private void fieldTanggalMulaiMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_fieldTanggalMulaiMouseClicked
        // TODO add your handling code here:
        cal1.setVisible(true);
    }//GEN-LAST:event_fieldTanggalMulaiMouseClicked

    private void fieldTanggalSelesaiMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_fieldTanggalSelesaiMouseClicked
        // TODO add your handling code here:
        cal2.setVisible(true);
    }//GEN-LAST:event_fieldTanggalSelesaiMouseClicked

    private void jMenuItem3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem3ActionPerformed
        // TODO add your handling code here:
        new LihatPerijinan(dataUser).setVisible(true);
    }//GEN-LAST:event_jMenuItem3ActionPerformed

private void fieldTanggalHilangMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_fieldTanggalHilangMouseClicked
// TODO add your handling code here:
}//GEN-LAST:event_fieldTanggalHilangMouseClicked

private void kalenderIjinMulai1MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_kalenderIjinMulai1MouseClicked
// TODO add your handling code here:
    cal3.setVisible(true);
}//GEN-LAST:event_kalenderIjinMulai1MouseClicked

private void buttonLihatPerijinan1MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_buttonLihatPerijinan1MouseClicked
// TODO add your handling code here:
}//GEN-LAST:event_buttonLihatPerijinan1MouseClicked

private void buttonSavePermohonanIjin1MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_buttonSavePermohonanIjin1MouseClicked
// TODO add your handling code here:
    
    
}//GEN-LAST:event_buttonSavePermohonanIjin1MouseClicked

private void fieldWaktuHilang1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_fieldWaktuHilang1ActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_fieldWaktuHilang1ActionPerformed

private void fieldNamaAcaraActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_fieldNamaAcaraActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_fieldNamaAcaraActionPerformed

private void buttonSavePermohonanIjin1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttonSavePermohonanIjin1ActionPerformed
// TODO add your handling code here:
    saveLaporanHilang();
}//GEN-LAST:event_buttonSavePermohonanIjin1ActionPerformed

private void comboKategoriActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_comboKategoriActionPerformed

}//GEN-LAST:event_comboKategoriActionPerformed

private void searchskkActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_searchskkActionPerformed
// TODO add your handling code here:
      viewMonitoring("nama_skk", searchskk.getText());
}//GEN-LAST:event_searchskkActionPerformed

private void comboOrganisasiActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_comboOrganisasiActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_comboOrganisasiActionPerformed

private void LokasiMonitoringActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_LokasiMonitoringActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_LokasiMonitoringActionPerformed

private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton4ActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_jButton4ActionPerformed

private void LokasiMonitoringItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_LokasiMonitoringItemStateChanged
// TODO add your handling code here:
   
   int isi = LokasiMonitoring.getSelectedIndex();
   if(isi == 0){
       viewMonitoring("", "");
   } else{
       viewMonitoring("NAMA_LOKASI", LokasiMonitoring.getSelectedItem().toString());
   }
}//GEN-LAST:event_LokasiMonitoringItemStateChanged

private void jButton4MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton4MouseClicked
// TODO add your handling code here:
    viewMonitoring("nama_skk", searchskk.getText());
}//GEN-LAST:event_jButton4MouseClicked

    private void menuManajemenAnggotaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menuManajemenAnggotaActionPerformed
        // TODO add your handling code here:
        new ManajemenAnggota().setVisible(true);
    }//GEN-LAST:event_menuManajemenAnggotaActionPerformed

    private void jMenuItem4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem4ActionPerformed
        // TODO add your handling code here:
        new ManajemenJadwal().setVisible(true);
    }//GEN-LAST:event_jMenuItem4ActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Windows".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(MenuUtama.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(MenuUtama.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(MenuUtama.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(MenuUtama.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new MenuUtama().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JComboBox LokasiMonitoring;
    private javax.swing.JTable TabelMonitoring;
    private javax.swing.JButton buttonLihatPerijinan;
    private javax.swing.JButton buttonLihatPerijinan1;
    private javax.swing.JButton buttonSavePermohonanIjin;
    private javax.swing.JButton buttonSavePermohonanIjin1;
    private javax.swing.JComboBox comboKategori;
    private javax.swing.JComboBox comboLokasiAcara;
    private javax.swing.JComboBox comboOrganisasi;
    private javax.swing.JTextField fieldAlamatPelapor;
    private javax.swing.JTextArea fieldInformasiHilang;
    private javax.swing.JTextField fieldNamaAcara;
    private javax.swing.JTextField fieldNamaBarang;
    private javax.swing.JTextField fieldNamaPelapor;
    private javax.swing.JTextField fieldNomorPelapor;
    private javax.swing.JTextField fieldNomorPemohon;
    private javax.swing.JTextField fieldTanggalHilang;
    private javax.swing.JTextField fieldTanggalMulai;
    private javax.swing.JTextField fieldTanggalSelesai;
    private javax.swing.JTextField fieldWaktuHilang1;
    private javax.swing.JTextField fieldWaktuHilang2;
    private javax.swing.JTextField fieldWaktuMulai1;
    private javax.swing.JTextField fieldWaktuMulai2;
    private javax.swing.JTextField fieldWaktuSelesai1;
    private javax.swing.JTextField fieldWaktuSelesai2;
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton12;
    private javax.swing.JButton jButton2;
    private javax.swing.JButton jButton3;
    private javax.swing.JButton jButton4;
    private javax.swing.JButton jButton8;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel15;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel20;
    private javax.swing.JLabel jLabel21;
    private javax.swing.JLabel jLabel22;
    private javax.swing.JLabel jLabel23;
    private javax.swing.JLabel jLabel24;
    private javax.swing.JLabel jLabel25;
    private javax.swing.JLabel jLabel27;
    private javax.swing.JLabel jLabel28;
    private javax.swing.JLabel jLabel29;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel30;
    private javax.swing.JLabel jLabel31;
    private javax.swing.JLabel jLabel32;
    private javax.swing.JLabel jLabel33;
    private javax.swing.JLabel jLabel34;
    private javax.swing.JLabel jLabel35;
    private javax.swing.JLabel jLabel36;
    private javax.swing.JLabel jLabel37;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JMenuItem jMenuItem2;
    private javax.swing.JMenuItem jMenuItem3;
    private javax.swing.JMenuItem jMenuItem4;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JPanel jPanel5;
    private javax.swing.JPanel jPanel6;
    private javax.swing.JPanel jPanel7;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JSeparator jSeparator1;
    private javax.swing.JSeparator jSeparator3;
    private javax.swing.JTabbedPane jTabbedPane1;
    private javax.swing.JTabbedPane jTabbedPane2;
    private javax.swing.JButton kalenderIjinMulai;
    private javax.swing.JButton kalenderIjinMulai1;
    private javax.swing.JButton kalenderIjinSelesai;
    private javax.swing.JLabel labelBulan;
    private javax.swing.JLabel labelLihatPerjanjian;
    private javax.swing.JLabel labelLihatPerjanjian1;
    private javax.swing.JLabel labelNama;
    private javax.swing.JLabel labelSavePerjanjian;
    private javax.swing.JLabel labelSavePerjanjian1;
    private javax.swing.JLabel labelStatus;
    private javax.swing.JLabel labelTahun;
    private javax.swing.JMenuItem menuAbout;
    private javax.swing.JMenu menuAdmin;
    private javax.swing.JMenu menuFile;
    private javax.swing.JMenu menuHelp;
    private javax.swing.JMenuItem menuLogout;
    private javax.swing.JMenuItem menuManajemenAnggota;
    private javax.swing.JPanel panelDetilAcara;
    private javax.swing.JPanel panelDetilAcara1;
    private javax.swing.JPanel panelSavePerjanjian;
    private javax.swing.JPanel panelSavePerjanjian1;
    private javax.swing.JPanel panelWaktuAcara;
    private javax.swing.JPanel panelWaktuAcara1;
    private javax.swing.JTextField searchskk;
    private javax.swing.JPanel tabIjin;
    private javax.swing.JPanel tabKehilangan;
    private javax.swing.JPanel tabMonitoring;
    // End of variables declaration//GEN-END:variables

    /**
     * @param dataUser the dataUser to set
     */
    public void setDataUser(String[] dataUser) {
        this.dataUser = dataUser;
    }
    
   void ambilLokasi(String parent, ArrayList temp){
       sql = "SELECT * FROM lokasi WHERE LOK_ID_LOKASI = '"+parent+"';";
       System.out.println(sql);
        ArrayList hasil = new ArrayList(); 
        try{
            k.rs = k.stmt.executeQuery(sql);
            System.out.println(k.rs.getFetchSize());
            while(k.rs.next()){
                hasil.add(k.rs.getString(1));
                System.out.println(k.rs.getString(1));
                hasil.add(k.rs.getString(2));
                System.out.println(k.rs.getString(2));
                hasil.add(k.rs.getString(3));
                System.out.println(k.rs.getString(3));
                System.out.println("============");
            }
            if(hasil.size() > 0){
                temp.add(hasil);
                for(int i=0; i<hasil.size(); i++){
                    System.out.println("tes "+i);
                    System.out.println("ambil lokasi "+hasil.get(1));
                    ambilLokasi(hasil.get(1).toString(), hasil);
                }
            }
            
        } catch(Exception e){
            System.out.println(e);
        }
    }
}